package com.company.command.section4;

/**
 * @author cbf4Life cbf4life@126.com <br/>
 *         I'm glad to share my knowledge with you all.
 */
public class ConcreteCommand2 extends Command {
	// 声明自己的默认接收者
	public ConcreteCommand2() {
		super(new ConcreteReciver2());
	}

	// 设置新的接收者
	public ConcreteCommand2(Receiver _receiver) {
		super(_receiver);
	}

	// 每个具体的命令都必须实现一个命令
	public void execute() {
		// 业务处理
		super.receiver.doSomething();
	}
}
